package org.example.book.state.command;

import org.example.book.state.pojo.Order;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class OrderCommand implements OrderCommandInterface{

    @Autowired
    private OrderCommandReceiver orderCommandReceiver;

    @Override
    public void execute(Order order) {
        orderCommandReceiver.action(order);
    }
}
